package com.kgc.kmall.managerweb.controller;

import com.kgc.kmall.bean.PmsSkuInfo;
import com.kgc.kmall.service.SkuService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
public class SkuController {

    @Reference
    SkuService skuService;

    @RequestMapping("/saveSkuInfo")
    public  String saveSkuInfo(@RequestBody PmsSkuInfo skuInfo){
        skuService.saveSkuInfo(skuInfo);
        return "success";
    }
}
